package QQServe;

import Common.User;

import java.util.HashMap;
/*
共用 所以 static
 */
public class ManageClientThread {
   private static HashMap<String,ServeConnectClientThread> hm=new HashMap<>();

    public static HashMap<String, ServeConnectClientThread> getHm() {
        return hm;
    }

    public static void addThread(String userId, ServeConnectClientThread thread){
        hm.put(userId, thread);
    }
    public static  ServeConnectClientThread getThread(String userId){
        return hm.get(userId);
    }
    public  static void removeThread(String userId){
        System.exit(0);
}
}
